package runesim.node.packethandler;
import org.apache.mina.common.IoSession;
import runesim.node.net.Packet;
import runesim.node.model.*;
public class DropItem implements PacketHandler {
	
			@SuppressWarnings("unused")
			@Override
			public void handlePacket(Packet p, IoSession session) {
				Player player = (Player) session.getAttachment();
                int id = p.readUnsignedWordA();
                int frameID = p.readShort();
				int slot = p.readUnsignedWordA();
				
				//TODO do a ground item handler and replace the below!
				player.getInventory().removeItem(slot);
			}
}